import request from "@/utils/request";

// 查询车辆类型收费标准列表
export function listCharge(query) {
  return request({
    url: "/api/charge/list",
    method: "get",
    params: query,
  });
}

// // 查询车辆类型收费标准详细
// export function getCharge(id) {
//   return request({
//     url: "/api/charge/" + id,
//     method: "get",
//   });
// }

// 新增车辆类型收费标准
export function addCharge(data) {
  return request({
    url: "/api/charge",
    method: "post",
    data: data,
  });
}

// 修改车辆类型收费标准
export function updateCharge(data) {
  return request({
    url: "/api/charge",
    method: "put",
    data: data,
  });
}

// 删除车辆类型收费标准
export function delCharge(id) {
  return request({
    url: "/api/charge/" + id,
    method: "delete",
  });
}
export function listTrailer(query) {
  return request({
    url: "/api/charge/platform/list",
    method: "get",
    params: query,
  });
}

export function getCharge(id) {
  return request({
    url: "/api/charge/platform/" + id,
    method: "get",
  });
}

export function getChargeType(query) {
  return request({
    url: "/api/partner/service/platform/info/",
    method: "get",
    params: query,
  });
}

export function add(data) {
  return request({
    url: "/api/charge/platform/add",
    method: "post",
    data: data,
  });
}

export function listTrailers(query) {
  return request({
    url: '/api/driver/trailer/list',
    method: 'get',
    params: query
  })
}
export function listPlateType(query) {
  return request({
    url: '/api/trailer/type/plateType',
    method: 'get',
    params: query
  })
}